.preview-word {
  align-items: flex-start;
  display: flex;
  overflow: hidden;

  & > .title-column {
    flex-shrink: 0;
    width: 5.4em;
    text-align: right;
  }
  & > .title {
    color: #555;
    font-size: 13px;
  }

  & > .content {
    flex: 1;
    overflow: hidden;
  }
}

@border-color: #e5e5e5;

.word-text {
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}
.word-text-editable {
  width: 300px;
}

.word-images {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  row-gap: 12px;
  column-gap: 12px;
  :global(.ant-image) {
    align-items: center;
    box-sizing: content-box;
    display: flex;
    height: 80px;
    justify-content: center;
    width: 80px;
    img {
      border-radius: 1px;
      max-height: 100%;
      max-width: 100%;
      width: auto;
    }
  }
}

.word-file {
  border-radius: 2px;
  border: 1px solid @border-color;
  color: #333;
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 12px 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 200px;
}

.word-video {
  video {
    max-height: 250px !important;
    max-width: 250px !important;
  }
}

.word-audio {
  display: block;
  max-width: 250px;
}

.word-link-card {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid @border-color;
  display: block;
  padding: 8px 12px;
  width: 250px;

  h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 8px;
    word-break: break-all;
    word-wrap: break-word;
  }

  .detail {
    display: flex;
  }

  .desc {
    color: #999;
    flex: 1;
    font-size: 12px;
    margin-right: 12px;
    word-break: break-all;
    word-wrap: break-word;
  }

  img {
    border-radius: 1px;
    height: 60px;
    width: 60px;
  }
}

.word-person-card {
  align-items: center;
  background-color: #fff;
  border-radius: 1px;
  border: 1px solid @border-color;
  display: flex;
  padding: 8px;
  width: 250px;
  img {
    border-radius: 2px;
    height: 45px;
    margin-right: 12px;
    width: 45px;
  }
  .info {
    flex: 1;
    overflow: hidden;
    padding-right: 12px;
    & > * {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .corp {
      color: #999;
      font-size: 12px;
      padding-top: 2px;
    }
  }
}

.word-mini-program,
.word-videonum {
  background-color: #fff;
  border-radius: 3px;
  border: 1px solid @border-color;
  width: 252px;
  .footer {
    align-items: center;
    border-top: 1px solid #f0f0f0;
    color: #999;
    display: flex;
    font-size: 12px;
    padding: 4px 2px;
    svg {
      margin-right: 2px;
    }
  }
}

.word-mini-program {
  padding: 11px 13px 0 13px;
  header {
    align-items: center;
    display: flex;
    word-break: break-all;
    word-wrap: break-word;
    img {
      @size: 18px;
      border-radius: @size;
      height: @size;
      margin-right: 5px;
      width: @size;
    }
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
  }
  .title {
    font-size: 14px;
    padding: 0.5em 0;
    word-break: break-all;
    word-wrap: break-word;
  }
  .cover {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 3px 3px 0 0;
    height: 210px;
    margin-bottom: 0.7em;
  }
  .footer svg {
    color: #7b88cb;
  }
}

.word-videonum {
  .thumb {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 3px 3px 0 0;
    height: 250px;
    width: 100%;
  }
  .info {
    align-items: center;
    display: flex;
    padding: 4px 13px;
    img {
      @size: 24px;
      border-radius: @size;
      height: @size;
      margin-right: 8px;
      width: @size;
    }
    :global(.ant-typography) {
      margin: 0;
      line-height: 1.4;
      font-size: 13px;
    }
  }
  .footer {
    margin: 0 13px;
    svg {
      color: #eb9143;
    }
  }
}

.word-group-invite {
  :global(.qun-group-item):not(:last-child) {
    margin-bottom: 8px;
  }
}
